<?php
/* **************************************************************************

File:					uninstall.estateagent.php
EstateAgent Improved - a Joomla Component
Copyright:			2004 - 2006 by Darko Selesi

Year: 2007
Improved by: Manos Orfanoudakis - "vosk"
Homepage: 		http://www.eaimproved.eu
Version: 			1.3.x                     
License:			GNU/GPL http://www.gnu.org/copyleft/gpl.html
*************************************************************************** */

// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function com_uninstall(){
	global $database;
	$database->setQuery("DELETE FROM #__menu WHERE link LIKE '%option=com_estateagent%'");
	$database->query();
	echo "<strong>EstateAgent Improved was uninstalled successfully.</strong>";

}

?>